﻿using System;
using Autodesk.Revit.DB;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ControlLayer;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ModelLayer;

namespace YJKRoomInspection.ShowDataForm.FireProofDirectionCheck
{
	public class DoorDirectionModellessManger : BaseLoopMangerNoneSwitch
	{
		public DoorDirectionModellessManger(FireProofDirectionForm inputForm) : base(inputForm.m_uidoc, inputForm, inputForm.RevitHandle, null)
		{
			this.m_doc = inputForm.m_uidoc.Document;
		}

		protected override void DoBeforeContinue()
		{
			if (this.m_useForm is FireProofDirectionForm)
			{
				FireProofDirectionForm fireProofDirectionForm = this.m_useForm as FireProofDirectionForm;
				if (fireProofDirectionForm.m_strOrderType == "doubleClick")
				{
					fireProofDirectionForm.DoBeforeContinue();
					return;
				}
				if (fireProofDirectionForm.m_strOrderType == "ModifyDirection")
				{
					fireProofDirectionForm.ModifyDoorDirection();
				}
			}
		}

		protected override void DoAfterWhile()
		{
			if (this.m_useForm is FireProofDirectionForm)
			{
				IModelessFormNoneSwitch useForm = this.m_useForm;
			}
			base.DoAfterWhile();
		}

		private Document m_doc;
	}
}
